﻿/*-------------------------------------------------------------------------
* 命名空间: PrismRegionSimple/MainViewModel
* 类       名: MainViewModel
* 功      能:  TD
* 时      间:  2023/12/20 10:51:40
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrismRegionSimple
{
    public class MainViewModel
    {
        private readonly IRegionManager _regionManager;

        public MainViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;
            _regionManager.RegisterViewWithRegion("MainContentRegion", typeof(ViewA));
        }
    }
}
